using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._EditingTools
{
    /// <summary>
    /// <para>Flip Line</para>
    /// <para>Reverses the from-to direction of line features.</para>
    /// <para>反转线要素的自向到方向。</para>
    /// </summary>    
    [DisplayName("Flip Line")]
    public class FlipLine : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FlipLine()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input line feature class or layer.</para>
        /// <para>输入线要素类或图层。</para>
        /// </param>
        public FlipLine(object _in_features)
        {
            this._in_features = _in_features;
        }
        public override string ToolboxName => "Editing Tools";

        public override string ToolName => "Flip Line";

        public override string CallName => "edit.FlipLine";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input line feature class or layer.</para>
        /// <para>输入线要素类或图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Updated Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public FlipLine SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}